<?php
	require_once ("../../../config/koneksi.php");
	$no_jaminan=$_GET['no_jaminan'];
	$sql="SELECT id_jaminan, p.id_peserta, nama,  tgl_lahir AS tahun_lahir FROM jaminan ja INNER JOIN peserta p ON ja.id_peserta = p.id_peserta INNER JOIN penduduk pn ON p.id_penduduk = pn.id_penduduk 
	INNER JOIN jenis_peserta j ON p.id_jenis_peserta = j.id_jenis_peserta where id_jaminan='".$no_jaminan."'";
	//echo $sql;
	$qry=mysql_query($sql);
	$hasil=mysql_fetch_array($qry);
	$arr_hasil=array('id_peserta'=>$hasil['id_peserta'],'nama'=>$hasil['nama'],'tahun'=>$hasil['tahun_lahir']);
	echo json_encode($arr_hasil);
	exit;
?>